#include "CAbility.h"

CAbility::CAbility()
{

}

CAbility::~CAbility()
{

}

void CAbility::setBattle(CBattle *battle)
{
  this->battle = battle;
}

void CAbility::setCaster(CMinionNode *caster)
{
  this->caster = caster;
}

void CAbility::setTarget(CMinionNode *target)
{
  this->target = target;
}

void CAbility::setPoint(vector3df &point)
{
  this->point = point;
}

s16 CAbility::getCost()
{
  return cost;
}

f32 CAbility::getRange()
{
  return range;
}

f32 CAbility::getRadius()
{
  return radius;
}

s32 CAbility::getDelay()
{
  return delay;
}

ABILITY_TYPE CAbility::getType()
{
  return type;
}

bool CAbility::isTargeted()
{
  if ( type == ABL_POINT || type == ABL_TARGET )
    return true;
  else
    return false;
}


